package com.hetao.xx.service;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.hetao.xx.Global;
import com.hetao.xx.activity.AbortActivity;
import com.hetao.xx.activity.CustomActivity;
import com.hetao.xx.activity.DelActivity;
import com.hetao.xx.activity.FightActivity;
import com.hetao.xx.activity.LoadActivity;
import com.hetao.xx.activity.MainActivity;
import com.hetao.xx.activity.NewActivity;
import com.hetao.xx.orm.NpcVo;

public class IntentManager {

    public static final int StartRequestCode = 1;
    public static final int StartClose = 1;

    public static void toAbort(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, AbortActivity.class);
        context.startActivity(intent);
    }

    public static void toMain(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, MainActivity.class);
        context.startActivity(intent);
    }

    public static void toNew(Activity context) {
        Intent intent = new Intent();
        intent.setClass(context, NewActivity.class);
        context.startActivityForResult(intent, StartRequestCode);
    }

    public static void toLoad(Activity context) {
        Intent intent = new Intent();
        intent.setClass(context, LoadActivity.class);
        context.startActivityForResult(intent, StartRequestCode);
    }

    public static void toDel(Activity context) {
        Intent intent = new Intent();
        intent.setClass(context, DelActivity.class);
        context.startActivity(intent);
    }

    public static void toCustom(Activity context) {
        Intent intent = new Intent();
        intent.setClass(context, CustomActivity.class);
        context.startActivity(intent);
    }

    public static void toFight(Context context) {
        Intent intent = new Intent();
        intent.setClass(context, FightActivity.class);
        context.startActivity(intent);
    }
}
